{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
<!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="post">	
                <div class="box-header with-border">
                    <span class="fa fa-edit" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">审批设置</p>
                </div>
                     <div class="box-body"> 
                               <table class="table table-bordered"  id="mytable">
                                  <thead>
                                        <tr style="background-color:#fcba4b;">
                                            <td>发布人</td>
                                            <td>审批人</td>
                                        </tr>	
                                   </thead>
								   {%foreach from=$department_lists key=key item=value%}
                                        <tr>
                                            <td>{%$value.department_name%}</td>
											<td>
											{%foreach from=$appoint_lists key=k item=v%}
                                                 <label class="choice"><input type="checkbox" value="{%$v.staff_id%}" name="department_{%$value.department_id%}[]"> {%$v.staff_name%}</label>
										    {%/foreach%}
											</td>
                                        </tr>
								   {%/foreach%}
                                        <tr>
                                            <td>教研组</td>
                                            <td>
                                                 {%foreach from=$appoint_lists key=k item=v%}
                                                 <label class="choice"><input type="checkbox" value="{%$v.staff_id%}" name="research[]"> {%$v.staff_name%}</label>
												 {%/foreach%}   
                                            </td>
                                        </tr>
										<tr>
                                            <td>备课组</td>
                                            <td>
                                                 {%foreach from=$appoint_lists key=k item=v%}
                                                 <label class="choice"><input type="checkbox" value="{%$v.staff_id%}" name="prepare[]"> {%$v.staff_name%}</label>
												 {%/foreach%}   
                                            </td>
                                        </tr>
										<tr>
                                            <td>学科组</td>
                                            <td>
                                                 {%foreach from=$appoint_lists key=k item=v%}
                                                 <label class="choice"><input type="checkbox" value="{%$v.staff_id%}" name="discipline[]"> {%$v.staff_name%}</label>
												 {%/foreach%}   
                                            </td>
                                        </tr>
										{%foreach from=$grade_lists key=key item=value%}
                                        <tr>
                                            <td>{%$value.grade_name%}级长</td>
                                            <td>
                                                 {%foreach from=$appoint_lists key=k item=v%}
                                                 <label class="choice"><input type="checkbox" value="{%$v.staff_id%}" name="grade_{%$value.grade_id%}[]"> {%$v.staff_name%}</label>
												 {%/foreach%}   
                                            </td>
                                        </tr>
										{%/foreach%} 
                                        {%foreach from=$grade_lists key=key item=value%}
                                        <tr>
                                            <td>{%$value.grade_name%}班主任</td>
                                            <td>
                                                 {%foreach from=$appoint_lists key=k item=v%}
                                                 <label class="choice"><input type="checkbox" value="{%$v.staff_id%}" name="grades_{%$value.grade_id%}[]"> {%$v.staff_name%}</label>
												 {%/foreach%}   
                                            </td>
                                        </tr>
										{%/foreach%}
                                </table>
				      </div><!--box-body -->
                     <div style="clear:both;"></div>
                     <div class="box-footer text-center">
				         <button type="submit" class="btn btn-primary"> 确 定</button>
				   </div>
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
